# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=phoronix-test-suite
pkgver=9.8.0
pkgrel=0
pkgdesc="The most comprehensive testing and benchmarking platform available for Linux"
url="https://www.phoronix-test-suite.com/"
arch="noarch"
license="GPL-3.0-or-later"
depends="php7 php7-dom php7-zip php7-json php7-simplexml"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
provides="phoromatic-server phoromatic-client"
source="$pkgname-$pkgver.tar.gz::https://github.com/phoronix-test-suite/phoronix-test-suite/archive/v$pkgver.tar.gz"
options="!check" # no tests

package() {
	DESTDIR="$pkgdir" ./install-sh
	rm -rf "$pkgdir"/usr/lib/systemd

	mkdir -p "$pkgdir"/usr/share/bash-completion
	mv "$pkgdir"/etc/bash_completion.d "$pkgdir"/usr/share/bash-completion/completions
}

bashcomp() {
	depends=""
	pkgdesk="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion/completions
}

sha512sums="f879818c74a33b51d21c9f2cad4b8a8bf8fbc88e491e1c96fd221b8568cbf7d320ec1b6750ad53c74a2888caf0d5d85195267372a5223f5402ae03897327b11d  phoronix-test-suite-9.8.0.tar.gz"
